package tech.dnf.tripartite.nnfpjss.service.codec;

/**
 * Create by dengfan at 2019/8/5 0005 15:46
 */
public interface Codec<T1,T2> {

    T2 encrypt(T1 data) throws Throwable;

    T1 decrypt(T2 data) throws Throwable;
}
